export const dftOptions = {
  zoomable: true,
  zoomOnTouch: true,
  zoomOnWheel: true,
  cropBoxMovable: true,
  cropBoxResizable: true,
  toggleDragModeOnDblclick: true,
  autoCrop: true,
  background: true,
  highlight: true,
  center: true,
  responsive: true,
  restore: true,
  checkCrossOrigin: true,
  checkOrientation: true,
  scalable: true,
  modal: true,
  guides: true,
  movable: true,
  rotatable: true,
}

export const cropperProps = {
  src: {
    type: String,
    default: '',
  },
  compress: {
    type: Number,
    default: 1,
  },
  viewMode: {
    type: Number,
    default: 2,
  },
  // 裁剪框的固定纵横比
  aspectRatio: {
    type: Number,
    default: 1,
  },
  // 是否开启圆形裁剪
  circle: {
    type: Boolean,
    default: false,
  },
  title: {
    type: String,
    default: '图片预览',
  },
}
